import { VNodeChild } from 'vue';
import { RouteMeta, RouteRecordRaw } from 'vue-router';

export interface AppRouteRecordMeta {
  hideInMenu?: boolean;
  icon?: string | VNodeChild | JSX.Element;
  authority?: string | string[];
  title?: string;
  isMenu?: boolean;
}

export type AppRouteRecordRaw = { meta?: AppRouteRecordMeta & RouteMeta } & RouteRecordRaw;
